<sf
    #sf
    mode="search"
    [schema]="searchSchema"
    autocomplete="off"
    [formData]="params"
    (formSubmit)="searchDataGet($event)"
    (formReset)="reSetDataGet(params)"
/>
<div space-card>
    <button nz-button *aclIf="['admin', 'system:role:add']" [nzType]="'primary'" (click)="addUsers()">
        <i nz-icon nzType="plus" nzTheme="outline"></i>添加用户
    </button>
    <button
        nz-button
        [disabled]="!(multipleCheckedItems.length > 0)"
        *aclIf="['admin', 'system:role:remove']"
        [nzType]="'primary'"
        (click)="cancelUsers(multipleCheckedItems)"
        nzDanger
    >
        <i nz-icon nzType="close-circle" nzTheme="outline"></i>批量取消授权
    </button>
</div>
<ng-container *ngIf="modalOpened">
    <st
        #st
        [bordered]="bordered"
        [data]="url"
        [req]="reqReName"
        [res]="resReName"
        [ps]="ps"
        [columns]="columns"
        [scroll]="scroll"
        [size]="tableSize"
        [page]="pageSet"
        [widthMode]="widthMode"
        (change)="simpleTableCheck($event)"
    >
        <ng-template st-row="statusCustom" let-item let-index="index">
            <dict-tag [value]="item.status" dictKey="sys_normal_disable" />
        </ng-template>
    </st>
</ng-container>
